home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / apport / general-hooks / ubuntu.py < prev    next >
Encoding:
Python Source  |  2009-09-25  |  769 b   |  22 lines

  1. '''Attach generally useful information, not specific to any package.
  2.  
  3. Copyright (C) 2009 Canonical Ltd.
  4. Author: Matt Zimmerman <mdz@canonical.com>
  5.  
  6. This program is free software; you can redistribute it and/or modify it
  7. under the terms of the GNU General Public License as published by the
  8. Free Software Foundation; either version 2 of the License, or (at your
  9. option) any later version.  See http://www.gnu.org/copyleft/gpl.html for
  10. the full text of the license.
  11. '''
  12.  
  13. import apport.packaging
  14. from apport.hookutils import *
  15.  
  16. def add_info(report):
  17.     # if we are running from a live system, add the build timestamp
  18.     attach_file_if_exists(report, '/cdrom/.disk/info', 'MediaBuild')
  19.  
  20.     # XXX - how do we get the package name?
  21.     # attach_conffiles(report, package)
  22.